package com.cpp.pojo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

//create table practice
//        (
//                id            int auto_increment comment '练习id'
//                        primary key,
//                course_id     int           null comment '所属课程id',
//                user_id       int           null comment '创建练习用户id',
//                type          int default 0 null comment '1开放题/2简答题/3单选题/4多选题',
//                content       text          null comment '题目内容（含题干、选项等）',
//                difficulty    int           null comment '难度：1`简单`/2`中等`/3`困难`',
//                knowledge_ids varchar(50)   null comment '关联知识点标签ids',
//answer        text          null comment '正确答案',
//analysis      text          null comment '答案解析'
//        );
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Practice {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long subjectId;
    private Long courseId;
    private Long userId;
    private Integer type;
    private String content;
    private Integer difficulty;
    private String knowledgeIds;
    private String answer;
    private String analysis;
    private Integer status;
}
